
package org.springxrsk.modules.signup.service.impl;

import org.springxrsk.modules.signup.pojo.dto.CustomersDTO;
import org.springxrsk.modules.signup.pojo.entity.QyStudentsOrderEntity;
import org.springxrsk.modules.signup.pojo.vo.CustomersVO;
import org.springxrsk.modules.signup.pojo.vo.QyStudentsOrderVO;
import org.springxrsk.modules.signup.excel.QyStudentsOrderExcel;
import org.springxrsk.modules.signup.mapper.QyStudentsOrderMapper;
import org.springxrsk.modules.signup.service.IQyStudentsOrderService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 订单管理 服务实现类
 *
 *  @author
 * @since 2024-06-19
 */
@Service
public class QyStudentsOrderServiceImpl extends BaseServiceImpl<QyStudentsOrderMapper, QyStudentsOrderEntity> implements IQyStudentsOrderService {

	@Override
	public IPage<QyStudentsOrderVO> selectQyStudentsOrderPage(IPage<QyStudentsOrderVO> page, QyStudentsOrderVO qyStudentsOrder) {
		return page.setRecords(baseMapper.selectQyStudentsOrderPage(page, qyStudentsOrder));
	}


	@Override
	public List<QyStudentsOrderExcel> exportQyStudentsOrder(Wrapper<QyStudentsOrderEntity> queryWrapper) {
		List<QyStudentsOrderExcel> qyStudentsOrderList = baseMapper.exportQyStudentsOrder(queryWrapper);
		//qyStudentsOrderList.forEach(qyStudentsOrder -> {
		//	qyStudentsOrder.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyStudentsOrder.getType()));
		//});
		return qyStudentsOrderList;
	}

	@Override
	public List<CustomersVO> getCustomerList(CustomersDTO dto) {
		return this.baseMapper.getCustomerList(dto);
	}

}
